home *** CD-ROM | disk | FTP | other *** search
- # ************************************************************************
- #
- # Microsoft Developer Support
- # Copyright (c) 1992, 1993 Microsoft Corporation
- #
- # ************************************************************************
- # MAKEFILE : MinRec
- # PURPOSE : A Small Win32 Sample Application Makefile
- # COMMENTS :
- #
- # ************************************************************************
-
- # Nmake macros for building Win32 applications
- !include <ntwin32.mak>
-
- # macro defines
- PROJ=MinRec
-
- # target list
- all: MinRec.exe RecHook.Dll
-
- # Update the resource if necessary
- MinRec.res: MinRec.rc MinRec.dlg MinRec.ico MinRec.h
- $(rc) $(rcvars) -r -fo MinRec.res MinRec.rc
- $(cvtres) -$(CPU) MinRec.res -o MinRec.rbj
-
- # Update the object file(s) if necessary
- MinRec.obj: MinRec.c MinRec.h
- $(cc) $(cdebug) $(cflags) $(cvars) MinRec.c
-
- RecHook.Obj: RecHook.C RecHook.H MinRec.H
- $(cc) $(cdebug) $(cflags) $(cvars) RecHook.C
-
- # Update the import library
- RecHook.Lib: RecHook.Obj RecHook.Def
- $(implib)\
- -machine:$(CPU)\
- -def:RecHook.Def\
- -out:RecHook.Lib
-
- # Update the dynamic link library
- RecHook.Dll: RecHook.Obj RecHook.Lib
- $(link) $(ldebug) $(guilflags)\
- -base:0x1C000000\
- -dll\
- -entry:DllEntryPoint$(DLLENTRY)\
- -out:RecHook.Dll\
- RecHook.Obj RecHook.Exp\
- $(guilibs)
-
- # Update the Executable file if necessary.
- MinRec.exe: MinRec.obj MinRec.res MinRec.def RecHook.Lib
- $(link) $(ldebug) $(guilflags)\
- -out:MinRec.exe\
- MinRec.obj MinRec.rbj RecHook.Lib\
- $(guilibs)
-